﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Shared/MainPage.Master" CodeBehind="CustomerAgingAccountList.aspx.cs" Inherits="Runda.CMS.Portal.Finiance.CustomerAgingAccountList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
    <script src="../Content/global.js" type="text/javascript"></script>     
    <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" /> 
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
   <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" /> 
    <script src="../Content/Grid/map_grid.js" type="text/javascript" ></script>
    <link href="../Content/Pager.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Content/jquery-1.3.2.js"></script>
    <script type="text/javascript" src="../Content/Bussiness/datasync.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
<div class="Container">
         <script type="text/javascript">
             function AddAgingAccount() {
                 var strcustomerID = document.getElementById('<%=txtCustomerID.ClientID %>').value;
                 openMyFullWin('AgingAccountAdd.aspx?CustomerID='+ strcustomerID, 'AgingAccountAdd');
             }
             function OpenEditAgingAccount(val) {
                 var strcustomerID = document.getElementById('<%=txtCustomerID.ClientID %>').value;
                 openMyFullWin('AgingAccountAdd.aspx?ID='+val+'&CustomerID='+strcustomerID, 'AgingAccountAdd');
             }
         </script>
         <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>帐期列表</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>                   
                        
                    </td>       
                      <td class="icMenu mnuRight" nowrap>       
                         <span class="menu"  onclick="AddAgingAccount();">
                            <img class="mnuBtn" src="../Content/Grid/New_16_blue.gif"><span class="mnuBtn">添加新帐期</span></span>              
                    </td>           
                </tr>
            </tbody>
        </table>       
         
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
         <asp:HiddenField ID="txtCustomerID" runat="server" />
             <asp:Repeater ID="RepeaterUsers" runat="server" 
                 onitemcommand="RepeaterUsers_ItemCommand">
                 <HeaderTemplate>
                    <table id="grid" class="grid" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="header">                
                  <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">类型</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>                      
                     <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">期龄</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                     <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">时间段</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                    <td width="14">
                        <asp:ImageButton ID="imgbtnRefersh" CommandName="refersh" runat="server" ImageUrl="../Content/Grid/grid_Refresh.gif" AlternateText="刷新列表"/> 
                    </td>
                </tr>
                 </HeaderTemplate>
                 <ItemTemplate>
                  <tr class="data" ondblclick="OpenEditAgingAccount('<%#Eval("ID") %>')" onclick="handleClick()" >   
                      <td><%#System.Convert.ToString(Eval("Type"))=="0" ? "按月":"按天" %></td>                 
                    <td><%#Eval("Age")%></td> 
                    <td><%#Eval("DateFrom")%> ~ <%#Eval("DateTo")%></td>                      
                    <td></td>
                </tr>
                 </ItemTemplate>
                 <FooterTemplate>
                    </tbody>
                </table>  
                 </FooterTemplate>
             </asp:Repeater>    
            
         </div>
</asp:Content>